package com.sky.constant;

/**
 * Redis key常量
 */
public class RedisKeyConstant {
    /**
     * 图书过滤缓存key前缀
     * 完整格式: BOOK_FILTER:{categoryId}:{minWordCount}:{maxWordCount}:{orderBy}:{orderDirection}
     */
    public static final String BOOK_FILTER = "BOOK_FILTER";

    /**
     * 图书过滤缓存过期时间（秒）
     */
    public static final long BOOK_FILTER_TTL = 3600; // 1小时

    /**
     * 管理员删除用户操作验证码key前缀
     */
    public static final String ADMIN_DELETE_USER_CODE = "admin:verify:user:delete:";

    /**
     * 管理员更新用户状态操作验证码key前缀
     */
    public static final String ADMIN_UPDATE_USER_STATUS_CODE = "admin:verify:user:status:";

    /**
     * 管理员封禁用户操作验证码key前缀
     */
    public static final String ADMIN_BAN_USER_CODE = "admin:verify:user:ban:";

    /**
     * 管理员解封用户操作验证码key前缀
     */
    public static final String ADMIN_UNBAN_USER_CODE = "admin:verify:user:unban:";

    /**
     * 删除管理员账户验证码 key
     */
    public static final String ADMIN_DELETE_ADMIN_CODE = "admin:delete:admin:code:";

    /**
     * 删除角色验证码 key
     */
    public static final String ADMIN_DELETE_ROLE_CODE = "admin:verify:role:delete:";

    /**
     * 临时封禁用户列表
     * 使用List存储所有被临时封禁的用户ID
     */
    public static final String TEMP_BANNED_USERS_LIST = "user:ban:temp_list";
} 